package com.sinosoft.vaccinetoai.dao.po.business;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 记录用户聊天历史
 */
@Getter
@Setter
@ToString
@Table(name = "dg_user_chat_chain_record")
public class ChatChainRecord implements Serializable {

    /**
     * 主键ID
     */
    @Id
    @Column(name = "ID")
    private Long id;

    /**
     * 聊天内容
     */
    @Column(name = "CHAT")
    private String chat;

    /**
     * 聊天文件
     */
    @Column(name = "FILE")
    private String file;

    /**
     * 用户ID
     */
    @Column(name = "USER_ID")
    private Long userId;

    /**
     * 聊天类型（0 普通主页AL聊天 1 检验结果解读 2 医学结果解读）
     */
    @Column(name = "TYPE")
    private Integer type;

    /**
     * ai聊天回复数量
     */
    @Column(name = "ANSWER_CHAT_NUM")
    private Integer answerChatNum;

    /**
     * 是否已经扣费处理过
     */
    @Column(name = "PAYED")
    private Boolean payed;

    /**
     * 状态；0-未删除 1-删除
     */
    @Column(name = "IS_DELETE")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
}
